/* eslint-disable quotes */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/open/v1/doLogin',
    method: 'post',
    params: data
  })
}

export function getInfo(token) {
  return request({
    url: '/web/v1/user/drivers',
    method: 'get',
    params: { token: token, page: 1 }
  })
}

export function logout(data) {
  return request({
    url: '/web/user/login/out/' + data.token,
    method: 'post'
  })
}
// 分页查询司机列表
export function user_drivers(data) {
  return request({
    url: '/user/drivers',
    method: 'get',
    params: data

  })
}
// 分页查询货主列表
export function user_owners(data) {
  return request({
    url: '/user/owners',
    method: 'get',
    params: data

  })
}
// 添加司机用户
export function addDriver(data) {
  return request({
    url: '/user/driver',
    method: 'get',
    params: data

  })
}
// 分页查询货主列表
export function addOwners(data) {
  return request({
    url: '/user/owners',
    method: 'get',
    params: data

  })
}

// 分页查询车队信息
export function driverTeams(data) {
  return request({
    url: '/user/driverTeams',
    method: 'get',
    params: data

  })
}
// 车辆列表
export function vehicleList(data) {
  return request({
    url: '/vehicle/vehicleList',
    method: 'get',
    params: data

  })
}
// 分页查询银行卡列表
export function userBanks(data) {
  return request({
    url: '/user/userBanks',
    method: 'get',
    params: data

  })
}